import { Component, OnInit, TemplateRef } from '@angular/core';
import { BsModalService } from 'ngx-bootstrap/modal';
import { BsModalRef } from 'ngx-bootstrap/modal/modal-options.class';

import { SimpleAnimate } from '../../../share/animation/my.simple.animation';

import { HttpService } from '../../../share/http/http.service';
import { NoticeService } from '../../../share/service/notice.service';

@Component({
  selector: 'hk-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.css'],
  animations: [SimpleAnimate]
})
export class HomeComponent implements OnInit {

  public modalRef: BsModalRef;

  constructor(
    private httpService: HttpService,
    private modalService: BsModalService,
    private noticeService: NoticeService) {
  }

  ngOnInit() {
    // this.init();
  }


  public openModal(template: TemplateRef<any>) {
    this.modalRef = this.modalService.show(template);
  }

}
